package com.example.zhu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
public class Transactions {


    private Integer transactionId;

    private String openid;

    private String takeOpenid;

    private Long number;

    private Integer coinsBefore;

    private Integer coinsAfter;

    private Integer moneyBefore;

    private Integer moneyAfter;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime transactionDate;

    private String transactionType;

    private Integer fee;

}
